package cn.hnevc.xiaoming;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;

import javax.imageio.stream.FileImageInputStream;

/*
 * 
 * 
 * 
 */
public class ExampleTest47 {

	public static void main(String[] args)  throws Exception{
		BufferedInputStream bufferedInputStream =
		new BufferedInputStream(new FileInputStream("text.txt"));
		
		BufferedOutputStream bOutputStream =
				new BufferedOutputStream(new FileOutputStream("des.txt"));
		int len;
		while ((len = bufferedInputStream.read())!=-1) {
		bOutputStream.write(len);
			
		}
		bufferedInputStream.close();
		bOutputStream.close();
		
	}
}
